package com.hfuu.service.user;

import com.hfuu.exceptions.ServiceExceptionSpec;
import com.hfuu.model.po.TbUser;
import com.hfuu.service.user.request.ManSysUserRequest;
import com.hfuu.service.user.request.UserLoginRequest;
import com.hfuu.service.user.request.UserRequest;
import com.hfuu.service.user.response.UserLoginResponse;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface UserService {

    TbUser insertOrUpdateUser(UserRequest request) throws ServiceExceptionSpec;

    UserLoginResponse sysLogin(HttpServletRequest request, UserLoginRequest sysLoginRequest) throws ServiceExceptionSpec;

    Object userDisable(HttpServletRequest request, UserLoginRequest sysLoginRequest) throws ServiceExceptionSpec;

    String getCheckImage(HttpServletRequest request, HttpServletResponse response);

    boolean judgeCheckCode(HttpServletRequest request, UserLoginRequest userLoginRequest);

    boolean judgeUserName(HttpServletRequest request, UserLoginRequest userLoginRequest);

    void updateSysUserPasswd(ManSysUserRequest userRequest) throws Exception;

    Object getUserById(HttpServletRequest request, UserLoginRequest userLoginRequest) throws Exception;
}
